From 9b2eb5dc8ee0b154a8555e1d45fbb894feabd639 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Sat, 13 Feb 2021 22:51:43 +0100 Subject: [PATCH] [PATCH] stop building libllvmopencl.so which is no longer used since 0.14 Gbp-Pq: Name 1001-stop-building-libllvmopencl.so-which-is-no-longer-us.patch --- CMakeLists.txt | 2 +- lib/llvmopencl/CMakeLists.txt | 36 ----------------------------------- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b5c6bc0..ce00030 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -327,7 +327,7 @@ endif() # for libpocl.so set(POCL_INSTALL_PUBLIC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" CACHE PATH "POCL public libdir") -# for llvmopencl.so +# for libpocl-devices-*.so set(POCL_INSTALL_PRIVATE_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pocl" CACHE PATH "POCL private libdir") # for pocl.icd diff --git a/lib/llvmopencl/CMakeLists.txt b/lib/llvmopencl/CMakeLists.txt index e2a546d..b0a1e56 100644 --- a/lib/llvmopencl/CMakeLists.txt +++ b/lib/llvmopencl/CMakeLists.txt @@ -100,39 +100,3 @@ endif(MSVC) #noinst_LTLIBRARIES = libllvmpasses.la add_library("llvmpasses" OBJECT ${LLVMPASSES_SOURCES}) harden("llvmpasses") - -# This creates a separate llvmopencl.so that is loaded to 'opt' -# for the pocl-workgroup version. -#pkglib_LTLIBRARIES = llvmopencl.la -add_library("llvmopencl" MODULE "$") -harden("llvmopencl") - -# not sure where other platforms get their library linkage list, probably there is -# way to make this more consistent on different platforms -if(MSVC) - target_link_libraries("llvmopencl" ${POCL_LLVM_LIBS}) -endif(MSVC) - -#target_link_libraries("llvmopencl" "${LLVM_SYSLIBS}") - -# TODO cmake should handle this, i might me missing something … -if(APPLE) - set(ADD_LD_FLAGS "-Wl,-undefined -Wl,dynamic_lookup ") -else() - set(ADD_LD_FLAGS "-Wl,-export-dynamic") -endif() - -# TODO ENABLE_EXPORTS -> Wl,export_dynamic -# http://www.cmake.org/cmake/help/v2.8.12/cmake.html#prop_tgt:ENABLE_EXPORTS -# http://www.cmake.org/pipermail/cmake/2011-November/047708.html -set_target_properties("llvmopencl" PROPERTIES LINK_FLAGS "${LLVM_LDFLAGS} ${ADD_LD_FLAGS}") -if(NOT APPLE) - set_target_properties("llvmopencl" PROPERTIES SOVERSION "${KERNEL_COMPILER_LIB_VERSION}" VERSION "${KERNEL_COMPILER_LIB_VERSION}") -endif() - -install(TARGETS "llvmopencl" - LIBRARY DESTINATION ${POCL_INSTALL_PRIVATE_LIBDIR} - COMPONENT "lib" - ARCHIVE DESTINATION ${POCL_INSTALL_PRIVATE_LIBDIR}/static - COMPONENT "dev" -) -- 2.30.2